package com.wander.designBehavioral.strategy;

/**
 * @Author : WDYin
 * @Date : 2020/10/11
 * @Desc :
 */
public class Context {

    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public String executeStrategy(){
        return strategy.pay();
    }
}
